package com.shangxian.giveithome.entity.community;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 关注用户信息列表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttentionUserList {

    /**
     * 用户id  比对数据时用到，不显示到前端
     */

    private Long id;
    /**
     * 用户头像
     */
    private String picture;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 发布文章的数目
     */
    private long issueCount;

    /**
     *
     * @param attentionUserList
     */
    private int state;  //0 未关注， 1已关注


    public AttentionUserList(AttentionUserList attentionUserList){
        this.id = attentionUserList.getId();
        this.name = attentionUserList.getName();
        this.picture = attentionUserList.getPicture();
        this.issueCount = attentionUserList.getIssueCount();

    }
}
